﻿using ChiWalker.Helpers;
using ChiWalker.Utilities;
using Styx;

namespace ChiWalker.Settings
{
    internal static class SettingsAnalyizer
    {
        public static bool AnalizeSpellUsage(SpellUsage usage)
        {
            switch (usage)
            {
                case SpellUsage.OnBosses:
                    return StyxWoW.Me.CurrentTarget != null && StyxWoW.Me.CurrentTarget.IsJournalBoss();
                case SpellUsage.LowHealth:
                    return StyxWoW.Me.HealthPercent <= 50;
                case SpellUsage.OnCoolDown:
                    return true;
                case SpellUsage.OnElites:
                    return StyxWoW.Me.CurrentTarget != null && StyxWoW.Me.CurrentTarget.Elite;
                default:
                    return false;
            }
        }
    }
}